/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-12-21
 * Time: 16:31
 */
public class Test {
    public static void main(String[] args) {
        int[] arr = {4,2,6,1,3,5,15,7,16,14};
        MyRBTree myRBTree = new MyRBTree();
        for (int i = 0;i < arr.length;i++){
            myRBTree.insert(arr[i]);
        }
        myRBTree.inorder(myRBTree.root);
        System.out.println();
        System.out.println(myRBTree.isRBTree());
    }
}
